package com.bestow.lease.service.impl;

import java.util.List;
import com.bestow.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.bestow.lease.mapper.PrjBasicRiskHdMapper;
import com.bestow.lease.domain.PrjBasicRiskHd;
import com.bestow.lease.service.IPrjBasicRiskHdService;

/**
 * 放款前提页签显示标识Service业务层处理
 * 
 * @author liliu
 * @date 2022-12-07
 */
@Service
public class PrjBasicRiskHdServiceImpl extends ServiceImpl<PrjBasicRiskHdMapper, PrjBasicRiskHd> implements IPrjBasicRiskHdService
{
    @Autowired
    private PrjBasicRiskHdMapper prjBasicRiskHdMapper;

    /**
     * 查询放款前提页签显示标识
     * 
     * @param basicRiskHdId 放款前提页签显示标识主键
     * @return 放款前提页签显示标识
     */
    @Override
    public PrjBasicRiskHd selectPrjBasicRiskHdByBasicRiskHdId(Long basicRiskHdId)
    {
        return prjBasicRiskHdMapper.selectPrjBasicRiskHdByBasicRiskHdId(basicRiskHdId);
    }

    /**
     * 查询放款前提页签显示标识列表
     * 
     * @param prjBasicRiskHd 放款前提页签显示标识
     * @return 放款前提页签显示标识
     */
    @Override
    public List<PrjBasicRiskHd> selectPrjBasicRiskHdList(PrjBasicRiskHd prjBasicRiskHd)
    {
        return prjBasicRiskHdMapper.selectPrjBasicRiskHdList(prjBasicRiskHd);
    }

    /**
     * 新增放款前提页签显示标识
     * 
     * @param prjBasicRiskHd 放款前提页签显示标识
     * @return 结果
     */
    @Override
    public int insertPrjBasicRiskHd(PrjBasicRiskHd prjBasicRiskHd)
    {
        prjBasicRiskHd.setCreateTime(DateUtils.getNowDate());
        return prjBasicRiskHdMapper.insertPrjBasicRiskHd(prjBasicRiskHd);
    }

    /**
     * 修改放款前提页签显示标识
     * 
     * @param prjBasicRiskHd 放款前提页签显示标识
     * @return 结果
     */
    @Override
    public int updatePrjBasicRiskHd(PrjBasicRiskHd prjBasicRiskHd)
    {
        prjBasicRiskHd.setUpdateTime(DateUtils.getNowDate());
        return prjBasicRiskHdMapper.updatePrjBasicRiskHd(prjBasicRiskHd);
    }

    /**
     * 批量删除放款前提页签显示标识
     * 
     * @param basicRiskHdIds 需要删除的放款前提页签显示标识主键
     * @return 结果
     */
    @Override
    public int deletePrjBasicRiskHdByBasicRiskHdIds(Long[] basicRiskHdIds)
    {
        return prjBasicRiskHdMapper.deletePrjBasicRiskHdByBasicRiskHdIds(basicRiskHdIds);
    }

    /**
     * 删除放款前提页签显示标识信息
     * 
     * @param basicRiskHdId 放款前提页签显示标识主键
     * @return 结果
     */
    @Override
    public int deletePrjBasicRiskHdByBasicRiskHdId(Long basicRiskHdId)
    {
        return prjBasicRiskHdMapper.deletePrjBasicRiskHdByBasicRiskHdId(basicRiskHdId);
    }
}
